Smush\Core\Modules\Dir D

Total Complexity 190
Dependencies 11
Dependents 3
Total lines 1,282
Lines of code 685
Logical lines of code 392
Comment lines 420
Methods 36
Properties 4

Methods 36

Method Rating Maintainability Complexity Lines of code
get_image_list()
C
35 25 85
get_directory_tree()
B
41 18 51
skip_dir()
B
48 18 27
total_stats()
A
41 12 55
optimise_image()
A
39 10 72
combine_stats()
A
51 9 23
validate_path()
A
54 8 22
initialize()
S
52 7 23
is_image()
S
57 6 17
directory_smush_finish()
S
57 6 15
last_scan_stats()
S
52 5 24
image_list()
S
54 5 20
get_image()
S
63 6 10
init()
S
56 4 17
get_root_path()
S
57 4 16
get_unsmushed_images()
S
57 4 16
should_continue()
S
65 5 9
directory_list()
S
58 4 14
check_table()
S
65 4 9
create_table()
S
53 2 27
show_table_error()
S
62 2 16
directory_smush_check_step()
S
63 3 10
table_exist()
S
64 3 9
build_query()
S
64 3 9
check_scan()
S
68 2 12
remove_directory_tab()
S
71 2 6
is_media_library_file()
S
65 2 9
is_image_from_extension()
S
66 2 8
get_scanned_images()
S
64 2 9
get_image_errors()
S
64 1 11
directory_smush_cancel()
S
74 1 5
directory_smush_start()
S
74 1 5
send_error()
S
70 1 7
store_images()
S
73 1 5
get_image_errors_count()
S
68 1 8
get_admin_path()
S
73 1 4